/*
 * @Autor: ZhangYao
 * @Date: 2022-11-16 09:59:27
 * @LastEditors: ZhangYao
 * @LastEditTime: 2022-11-17 10:42:43
 */
import request from '../utils/request'
// 作业管理接口
const base_url = '/flink/taskInfo/'
const job_dev = '/flink/jobDev/'

// 查询作业
export function taskInfoPage(data) {
  return request({
    url: base_url + 'page',
    method: 'post',
    data
  })
}

// 新增修改作业信息
export function addAndUpdateTaskInfo(data) {
  return request({
    url: base_url + 'addAndUpdate',
    method: 'post',
    data
  })
}

// 删除
export function deleteFn(data) {
  console.log(data)
  return request({
    url: base_url + 'delete',
    method: 'post',
    data
  })
}
// 作业开发-上传jar包
export function upJar(data) {
  return request({
    url: job_dev + 'upJar',
    method: 'post',
    data
  })
}
// 作业开发-删除jar包
export function deleteJar(data) {
  return request({
    url: job_dev + 'delete',
    method: 'get',
    params: data
  })
}
